2e68508b9b9a3a319f3af5e38991a378c0d3b292,com/gamingmesh/jobs/container/JobsPlayer.java,JobsPlayer,getPlayerBoost,#String#CurrencyType#,245

Before Change


    private Double getPlayerBoost(String JobName, CurrencyType type) {
	double Boost = 0D;
	if (Perm.hasPermission(player, "jobs.boost." + JobName + "." + type.getName().toLowerCase()) ||
	    Perm.hasPermission(player, "jobs.boost." + JobName + ".all") ||
	    Perm.hasPermission(player, "jobs.boost.all.all") ||
	    Perm.hasPermission(player, "jobs.boost.all." + type.getName().toLowerCase())) {
	    Boost = Jobs.getGCManager().Boost.get(type);

After Change


	Double Boost = null;
	Double v1 = Jobs.getPermissionManager().getMaxPermission(this, "jobs.boost." + JobName + "." + type.getName().toLowerCase(), true);
	    Boost = v1;
	v1 = Jobs.getPermissionManager().getMaxPermission(this, "jobs.boost." + JobName + ".all");
	if (Boost == null ||v1 != null && v1 > Boost)
	    Boost = v1;
	v1 = Jobs.getPermissionManager().getMaxPermission(this, "jobs.boost.all.all");
	if (Boost == null ||v1 != null && v1 > Boost)
	    Boost = v1;